﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using tmAsk.Common;

namespace tmAsk.Manager
{
    public partial class admin_update : System.Web.UI.Page
    {
        function make_htm = new function();//继承类
        tmAsk.Data.MakehtmlSQL SQL = new tmAsk.Data.MakehtmlSQL();
        protected void Page_Load(object sender, EventArgs e)
        {
            function.CheckAdminLogin();

            string T = Request.Params["T"];
            string id = Request.Params["id"];

            switch (T)
            {
                case "b_info":
                    T_B_info(id);
                    break;
                case "b_makehtml":
                    T_B_makehtml(id);
                    break;
                case "b_askClass":
                    T_B_askClass(id);
                    break;
                case "b_userLevel":
                    T_b_userLevel(id);
                    break;
                case "b_user":
                    T_B_user(id);
                    break;
                case "b_admin":
                    T_B_admin(id);
                    break;
                case "b_ask_class":
                    T_B_ask_class(id);
                    break;
                case "b_ask_audit":
                    T_B_ask_audit(id);
                    break;
                case "b_ask_update":
                    T_B_ask_update(id);
                    break;
                case "b_recommend":
                    T_B_recommend(id);
                    break;
                case "b_ask_recommend":
                    T_B_recommend(id);
                    break;
                case "b_ask_remm":
                    T_B_recomm(id);
                    break;
                case "b_image":
                    T_B_image(id);
                    break;
                case "b_removeRecommend":
                    T_B_removeRecommend(id);
                    break;
                case "b_ask_delete":
                    T_B_ask_delete(id);
                    break;
                case "b_hotKeyword":
                    T_B_hotKeyword(id);
                    break;
                case "b_news":
                    T_B_news(id);
                    break;
                case "b_helpClass":
                    T_B_helpClass(id);
                    break;
                case "b_help":
                    T_B_help(id);
                    break;
                case "b_links":
                    T_B_links(id);
                    break;
            }
        }

        /// <summary>
        /// 基本信息设置
        /// </summary>
        /// <param name="id">基本信息ID</param>
        private void T_B_info(string id)
        {
            string i_title = Request.Form["i_title"].Trim().Replace("'", "`");
            string i_content = Request.Form["i_content"].Trim().Replace("'", "`");
            string i_time = DateTime.Now.ToString();
            string i_model = Request.Form["i_url"].Trim().Replace("'", "`");
            if (!function.CheckNull(i_title, i_content, i_model))
            {
                Response.Write(function.alert_text(4, "添加失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            string sql = "update B_info set i_title='" + i_title + "',i_content='" + i_content + "',i_time='" + i_time + "',i_model='" + i_model + "' where i_id=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_info.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 生成静态页设置
        /// </summary>
        /// <param name="id"></param>
        private void T_B_makehtml(string id)
        {
            string m_template = Request.Form["m_template"].Trim().Replace("'", "`");
            string m_url = Request.Form["m_url"].Trim().Replace("'", "`");

            if (!function.CheckNull(m_template, m_url))
            {
                Response.Write(function.alert_text(4, "添加失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            string sql = "update B_makehtml set m_template='" + m_template + "',m_url='" + m_url + "' where m_id=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_set.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 问题分类设置
        /// </summary>
        /// <param name="id"></param>
        private void T_B_askClass(string id)
        {
            string a_className = Request.Form["a_className"].Trim().Replace("'", "`");
            string a_classLevel = Request.Form["a_classLevel"].Trim().Replace("'", "`");
            string a_parentid = "-1";
            if (!function.CheckNull(a_className))
            {
                Response.Write(function.alert_text(4, "修改成功，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            try
            {
                function.isNumber(a_classLevel, a_parentid);
            }
            catch (Exception)
            {
                Response.Write(function.alert_text(4, "添加失败，无法转换成数字类型！", ""));
                return;
            }
            if (a_classLevel == "1")
            {
                DataTable pid = SQL.GetList("B_askClass", "a_parentid=" + 0, "a_parentid").Tables[0];
                if (pid.Rows.Count <= 0)
                    a_parentid = null;
                else
                    a_parentid = "0";
            }
            else
            {
                a_parentid = Request.Form["haveParent"];
            }

            if (a_parentid == "" || a_parentid == null)
            {
                Response.Write(function.alert_text(4, "请保证数据库中有一个以上的一级分类！", ""));
                return;
            }
            if (id == a_parentid)
            {
                Response.Write(function.alert_text(4, "父类名称不能是自己！", ""));
                return;

            }
            //查找该ID下有没有子分类 有则不能修改
            DataTable dt = SQL.GetList("B_askClass", "a_parentid=" + id, "a_parentid").Tables[0];
            if (dt.Rows.Count > 0)
            {
                if (a_classLevel != "1")
                {
                    Response.Write(function.alert_text(4, "该分类存在子分类，请先修改子分类！", ""));
                    return;
                }
            }

            string sql = "update B_askClass set a_className='" + a_className + "',a_parentid=" + a_parentid + ",a_classLevel=" + a_classLevel + " where a_classid=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_class_ask.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 会员等级设置
        /// </summary>
        /// <param name="id"></param>
        private void T_b_userLevel(string id)
        {
            string u_title = Request.Form["u_title"].Trim().Replace("'", "`");
            string u_level = Request.Form["u_level"].Trim().Replace("'", "`");
            string u_point = Request.Form["u_point"].Trim().Replace("'", "`");
            if (!function.CheckNull(u_title, u_level, u_point))
            {
                Response.Write(function.alert_text(4, "修改失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            try
            {
                function.isNumber(u_level, u_point);
            }
            catch (Exception)
            {
                Response.Write(function.alert_text(4, "添加失败，无法转换成数字类型！", ""));
                return;
            }
            string sql = "update b_userLevel set u_title='" + u_title + "',u_level=" + u_level + ",u_point=" + u_point + " where u_id=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_user_level.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 注册会员管理
        /// </summary>
        /// <param name="id"></param>
        private void T_B_user(string id)
        {

            string sql;

            string u_ischeck = Request.Form["u_ischeck"];

            string u_nickName = Request.Form["u_nickName"];

            string u_level = Request.Form["u_level"];

            string a_classid = Request.Form["a_classid"];

            if (Convert.ToInt32(u_level) == 1)
            {
                sql = "update b_user set u_ischeck=" + u_ischeck + ",u_nickName='" + u_nickName + "',u_level=" + u_level + ",u_userclass=null where u_id=" + id;
            }
            else
            {
                sql = "update b_user set u_ischeck=" + u_ischeck + ",u_nickName='" + u_nickName + "',u_level=" + u_level + ",u_userclass=" + a_classid + " where u_id=" + id;
            }


            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                string url;

                switch (Convert.ToInt32(u_level))
                {
                    case 1:
                        url = "admin_url.aspx?template=template/t_admin_user.html";
                        break;
                    case 8:
                        url = "admin_url.aspx?template=template/t_admin_tourists.html";
                        break;
                    default:
                        url = "admin_url.aspx?template=template/t_admin_user.html";
                        break;
                }
                Response.Write(function.alert_text(2, "修改成功", url));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 管理员设置 
        /// </summary>
        /// <param name="id"></param>
        private void T_B_admin(string id)
        {
            string a_id = Request.Form["a_id"].Trim().Replace("'", "");
            string lodPass = Request.Form["lodPass"].Trim().Replace("'", "");
            string newPass = Request.Form["newPass"].Trim().Replace("'", "");
            string repeatPass = Request.Form["repeatPass"].Trim().Replace("'", "");
            if (!function.CheckNull(lodPass, newPass, repeatPass))
            {
                Response.Write(function.alert_text(4, "修改失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            //1、判断新密码和重复新密码是否相等
            if (!newPass.Equals(repeatPass))
            {
                Response.Write(function.alert_text(4, "两次输入的密码不一致，请重新输入！", ""));
                return;
            }
            //2、判断旧密码和数据库中的是否一致
            DataTable dt = SQL.GetList("B_admin", "a_id=" + a_id, "a_userpassword").Tables[0];
            if (dt.Rows.Count > 0)
            {
                for (int j = 0; j < dt.Rows.Count; j++)
                {
                    if (!(dt.Rows[j]["a_userpassword"]).Equals(make_htm.Md5(lodPass)))
                    {
                        Response.Write(function.alert_text(4, "旧密码错误，请重新输入！", ""));
                        return;
                    }
                }
            }
            newPass = make_htm.Md5(newPass);
            string sql = "update B_admin set a_userpassword='" + newPass + "' where a_id=" + a_id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_administrator.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 修改问题分类
        /// </summary>
        /// <param name="id"></param>
        private void T_B_ask_class(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，没有选择数据或ID为空！", ""));
                return;
            }

            string a_classid = Request.Form["a_classid"];

            if (a_classid == null || a_classid == "" || a_classid == "0")
            {
                Response.Write(function.alert_text(4, "错误，请选择分类！", ""));
                return;
            }
            int i = SQL.ExecuteSql("update B_ask set a_classid=" + a_classid + " where a_id=" + id);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_ask.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 审核管理
        /// </summary>
        /// <param name="id"></param>
        private void T_B_ask_audit(string id)
        {
            if (id == "" || id == null)
            {
                id = Request.Form["a_id"];//去页面找id
                if (id == null || id == "")//如果还找不到
                {
                    Response.Write(function.alert_text(4, "删除失败，尚未选择数据！", ""));
                    return;
                }
            }

            //string a_ischeck = Request.Form["a_ischeck"];
            string a_ischeck = string.Join(",", (string[])Request.Form.GetValues("a_ischeck"));


            int i = SQL.ExecuteSql("update B_ask set a_ischeck=" + a_ischeck + " where a_id =" + id);

            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_ask.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 问题修改
        /// </summary>
        /// <param name="id"></param>
        private void T_B_ask_update(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，没有选择数据或ID为空！", ""));
                return;
            }
            string a_title = Request.Form["asktitle"];
            string askcontent = Request.Form["askcontent"];
            string askkeyword = Request.Form["askkeyword"];
            string a_time = Request.Form["a_time"];
            string a_state = Request.Form["a_state"];

            int i = SQL.ExecuteSql("update B_ask set a_state = " + a_state + ", a_time = '" + a_time + "', a_title = '" + a_title + "',a_keyword='" + askkeyword + "',a_content='" + askcontent + "' where a_id=" + id);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_ask.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }


        /// <summary>
        /// 提取专题
        /// </summary>
        /// <param name="id"></param>
        private void T_B_recommend(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }

            if (function.GetAskIscheck(id) == true)
            {
                Response.Write(function.alert_text(4, "问题未通过审核，无法设置专题！", ""));
            }
            else
            {
                string a_mtitle = Request.Form["a_mtitle"].Trim().Replace("'", "`");
                if (!function.CheckNull(a_mtitle))
                {
                    Response.Write(function.alert_text(4, "添加失败，请将资料填写完整！*号为必填项。", ""));
                    return;
                }
                int i = SQL.ExecuteSql("update B_ask set a_mtitle='" + a_mtitle + "',a_recommend=1 where a_id=" + id);
                if (i > 0)
                {
                    Response.Write(function.alert_text(2, "设置成功", "admin_url.aspx?template=template/t_admin_recommend.html"));
                }
                else
                {
                    Response.Write(function.alert_text(4, "设置失败", ""));
                }
            }
        }

        /// <summary>
        /// 推荐问题
        /// </summary>
        /// <param name="id"></param>
        private void T_B_recomm(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }

            if (function.GetAskIscheck(id) == true)
            {
                Response.Write(function.alert_text(4, "问题未通过审核，无法推荐！", ""));
            }
            else
            {
                string a_recommend = Request.Form["a_recommend"].Trim().Replace("'", "`");

                int i = SQL.ExecuteSql("update B_ask set a_recommend=" + a_recommend + " where a_id=" + id);
                if (i > 0)
                {
                    Response.Write(function.alert_text(2, "设置成功", "admin_url.aspx?template=template/t_admin_ask.html"));
                }
                else
                {
                    Response.Write(function.alert_text(4, "设置失败", ""));
                }
            }
        }

        private void T_B_image(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            string a_image = Request.Form["a_image"];
            #region 上传图片
            HttpFileCollection files = System.Web.HttpContext.Current.Request.Files;
            string img_name = "";
            for (int j = 0; j < files.Count; j++)
            {
                HttpPostedFile userPostedFile = files[j];
                //返回0没有选择文件
                //返回1文件太大
                //返回2文件格式有问题
                //返回3图片文件非法
                img_name = make_htm.Upload("../uploadfiles/rec/", "../uploadfiles/rec/th/", 80, 80, 200, userPostedFile, "jpg,gif,JPG,GIF");
            }
            if (img_name == "0")
            {
                Response.Write(function.alert_text(4, "添加失败，没有选择文件", ""));
                return;
            }
            else if (img_name == "1")
            {
                Response.Write(function.alert_text(4, "添加失败，文件太大！", ""));
                return;
            }
            else if (img_name == "2")
            {
                Response.Write(function.alert_text(4, "添加失败，文件格式有问题！", ""));
                return;
            }
            else if (img_name == "3")
            {
                Response.Write(function.alert_text(4, "添加失败，图片文件非法！", ""));
                return;
            }
            else
            {
                SQL.ExecuteSql("insert into B_image(i_title,i_path,i_url,i_model) values('" + img_name + "','../uploadfiles/rec/" + img_name + "','','专题')");
                SQL.ExecuteSql("update B_ask set a_img='" + img_name + "' where a_id=" + id);
                Response.Write(function.alert_text(2, "上传成功", "admin_url.aspx?template=template/t_admin_recommend.html"));
            }
            #endregion
        }

        /// <summary>
        /// 撤销专题
        /// </summary>
        /// <param name="id"></param>
        private void T_B_removeRecommend(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            int i = SQL.ExecuteSql("update B_ask set a_recommend=0,a_mtitle='' where a_id=" + id);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "撤销成功", "admin_url.aspx?template=template/t_admin_recommend.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "撤销失败", ""));
            }
        }

        /// <summary>
        /// 撤销删除
        /// </summary>
        /// <param name="id"></param>
        private void T_B_ask_delete(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            int i = SQL.ExecuteSql("update B_ask set a_delete=0 where a_id=" + id);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "撤销成功", "admin_url.aspx?template=template/t_admin_recycle.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "撤销失败", ""));
            }
        }

        /// <summary>
        /// 修改热门搜索词
        /// </summary>
        /// <param name="id"></param>
        private void T_B_hotKeyword(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            string h_title = Request.Form["h_title"].Trim().Replace("'", "`");
            string h_number = Request.Form["h_number"].Trim().Replace("'", "`");
            if (!function.CheckNull(h_title))
            {
                Response.Write(function.alert_text(4, "添加失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }

            int i = SQL.ExecuteSql("update B_hotKeyword set h_title='" + h_title + "',h_number=" + h_number + " where h_id=" + id);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_hotKeyword.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 修改公告
        /// </summary>
        /// <param name="id"></param>
        private void T_B_news(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            string n_title = Request.Form["n_title"].Trim().Replace("'", "`");
            string n_content = Request.Form["n_content"].Trim();
            if (!function.CheckNull(n_title, n_content))
            {
                Response.Write(function.alert_text(4, "添加失败，请将资料填写完整！*号为必填项。", ""));
                return;
            }
            string sql = "update B_news set n_title='" + n_title + "',n_content='" + n_content + "' where n_id=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_news.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        /// <summary>
        /// 修改分类
        /// </summary>
        /// <param name="id"></param>
        private void T_B_helpClass(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }

            string h_className = Request.Form["h_className"].Trim().Replace("'", "`");
            string sql = "update B_helpClass set h_className='" + h_className + "' where h_classid=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_class_help.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        private void T_B_help(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            string h_title = Request.Form["h_title"].Trim().Replace("'", "`");
            string h_content = Request.Form["h_content"].Trim();
            string h_classid = Request.Form["h_classid"];
            if (!function.CheckNull(h_title, h_content))
            {
                Response.Write(function.alert_text(4, "请将资料填写完整！", ""));
                return;
            }
            string sql = "update B_help set h_title='" + h_title + "',h_content='" + h_content + "',h_classid=" + h_classid + " where h_id=" + id;
            int i = SQL.ExecuteSql(sql);
            if (i > 0)
            {
                Response.Write(function.alert_text(2, "修改成功", "admin_url.aspx?template=template/t_admin_help.html"));
            }
            else
            {
                Response.Write(function.alert_text(4, "添加失败", ""));
            }
        }

        private void T_B_links(string id)
        {
            if (id == null || id == "")
            {
                Response.Write(function.alert_text(4, "错误，ID为空！", ""));
                return;
            }
            DataTable dt = SQL.GetList("select l_img from B_links where l_id=" + id).Tables[0];
            if (dt.Rows.Count <= 0)
            {
                Response.Write(function.alert_text(4, "记录不存在！", ""));
                return;
            }
            string l_name = Request.Form["l_name"].Trim().Replace("'", "`");
            string l_url = Request.Form["l_url"].Trim();
            string l_img = "";
            string l_order = Request.Form["l_order"].Trim();
            if (function.isNumber(l_order))
            {
                Response.Write(function.alert_text(4, "排序只能为数字！", ""));
                return;
            }
            string l_type = Request.Form["l_type"];
            string sql = "";
            if (l_type == "0")
            {
                sql = "update B_links set l_name='" + l_name + "',l_url='" + l_url + "',l_order='" + l_order + "',l_type='" + l_type + "' where l_id=" + id;
            }
            else
            {
                #region 上传图片
                HttpPostedFile userPostedFile = Request.Files["l_img"];
                //返回0没有选择文件
                //返回1文件太大
                //返回2文件格式有问题
                //返回3图片文件非法
                if (userPostedFile != null)
                {
                    if (userPostedFile.ContentLength > 0)
                    {
                        l_img = make_htm.Upload("../uploadfiles/link/", 450, 200, userPostedFile, "jpg,gif,JPG,GIF");
                        if (l_img == "0")
                        {
                            Response.Write(function.alert_text(4, "添加失败，没有选择文件", ""));
                            return;
                        }
                        else if (l_img == "1")
                        {
                            Response.Write(function.alert_text(4, "添加失败，图片不能超过200K！", ""));
                            return;
                        }
                        else if (l_img == "2")
                        {
                            Response.Write(function.alert_text(4, "添加失败，文件格式有问题！", ""));
                            return;
                        }
                        else if (l_img == "3")
                        {
                            Response.Write(function.alert_text(4, "添加失败，图片文件非法！", ""));
                            return;
                        }
                        else if (l_img == "-3")
                        {
                            Response.Write(function.alert_text(4, "添加失败", ""));
                            return;
                        }
                    }
                }
                #endregion
                sql = "update B_links set l_name='" + l_name + "',l_url='" + l_url + "',l_img='" + l_img + "',l_order='" + l_order + "',l_type='" + l_type + "' where l_id=" + id;
            }
            try
            {
                string oldimg = dt.Rows[0]["l_img"].ToString();
                System.IO.File.Delete(Server.MapPath(oldimg));
            }
            catch
            { }
            int j = SQL.ExecuteSql(sql);
            if (j <= 0)
            {
                Response.Write(function.alert_text(4, "修改失败！", ""));
                return;
            }
            Response.Redirect("admin_url.aspx?template=template/t_admin_links.html");
        }
    }
}